package com.example.wan1.view.coin;

import com.example.wan1.R;
import com.example.wan1.adapter.CoinRankListAdapter;
import com.example.wan1.di.ano.FragmentScope;
import com.example.wan1.model.CoinBean;

import java.util.ArrayList;
import java.util.List;

import dagger.Binds;
import dagger.Module;
import dagger.Provides;

/***
 * @Author: zxd
 * @CreateDate: 2020/8/26 13:47
 * @Description: 积分排行榜
 */
@Module
public abstract class CoinRankModule {

    @Binds
    abstract CoinContract.View coinRankView(CoinRankFragment coinRankFragment);

    @FragmentScope
    @Provides
    static CoinRankListAdapter provideAdapter(List<CoinBean> mList) {
        return new CoinRankListAdapter(R.layout.coin_rank_item, mList);
    }

    @FragmentScope
    @Provides
    static List<CoinBean> provideList() {
        return new ArrayList<>();
    }
}
